package com.itheima_06;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchTest {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(3);
        Mother mother = new Mother(countDownLatch,"妈妈");
        Childer1 childer1 = new Childer1(countDownLatch,"小红");
        Childer2 childer2 = new Childer2(countDownLatch,"小明");
        Childer3 childer3 = new Childer3(countDownLatch,"小强");

        childer1.start();
        childer2.start();
        childer3.start();
        mother.start();

    }
}
